package com.szw.dlyk.service;

import com.github.pagehelper.PageInfo;
import com.szw.dlyk.domain.Activity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.szw.dlyk.query.ActivityQuery;

import java.util.List;

/**
* @author asus
* @description 针对表【t_activity(市场活动表)】的数据库操作Service
* @createDate 2024-01-21 18:16:50
*/
public interface ActivityService extends IService<Activity> {

    PageInfo<Activity> getActivityByPage(Integer current, ActivityQuery activityQuery);

    int saveActivity(ActivityQuery activityQuery);

    int updateActivity(ActivityQuery activityQuery);

    Activity getActivityById(Integer id);

    List<Activity> getOngoingActivity();
}
